package com.etone.smartAudit.mapstruct;

import com.etone.smartAudit.domain.ServerInfo;
import com.etone.smartAudit.dto.serverInfo.ServerInfoDTO;
import com.etone.smartAudit.vo.serverInfo.ServerInfoDetailVO;
import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;
import org.mapstruct.NullValueCheckStrategy;

/**
 * @author: sovy
 * @date: 2020/10/28
 * @description:
 */
@Mapper(componentModel = "spring", nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS)
public interface ServerInfoMapStruct {

    ServerInfoDetailVO getServerInfoDetailVO(ServerInfo serverInfo);

    void copyToServerInfo(@MappingTarget ServerInfo serverInfo, ServerInfoDTO serverInfoDTO);
}
